from django.contrib import admin
from django.urls import path,re_path,include
from rest_framework_jwt.views import obtain_jwt_token
from . import views
from rest_framework.routers import SimpleRouter,DefaultRouter

from .views import areas,suppliers,customers,warehouse,account

urlpatterns = [

   # re_path(r'^user/login/$', obtain_jwt_token), #jwt的签发 和认证token的视图类

]

router=DefaultRouter()
#router.register(r'menus',views.MenuView)
router.register(r'nation',areas.NationView)
router.register(r'province',areas.ProvinceView)
router.register(r'city',areas.CityView)
router.register(r'suppliers',suppliers.SuppliersView)
router.register(r'customers',customers.CustomerView)
router.register(r'warehouse',warehouse.WarehouseView)
router.register(r'accounts',account.AccountView)
urlpatterns+=router.urls
# print(router)